package net.huashitong.synthetical.jobOversee.dao;

import com.sirdc.modules.core.dao.GenericQuery;
import com.sirdc.modules.core.dao.StringDao;
import net.huashitong.synthetical.jobOversee.entity.DutyUnit;
import net.huashitong.synthetical.jobOversee.filter.DutyUnitFilter;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class DutyUnitDao extends StringDao<DutyUnit> {

    /**
     * 主查询入口
     * @param filter
     * @return
     */
    public List<DutyUnit> getunitInfo(DutyUnitFilter filter)
    {
        GenericQuery query  = createQuery("obj");
        return query.listResult(filter);
    }



}
